package com.ktjy.proxy;

import com.ktjy.service.Buyer;
import org.apache.log4j.Logger;

public class InterMediaryImpl implements Buyer {
    private Logger logger = Logger.getLogger(InterMediaryImpl.class);
    private Buyer target;

    public InterMediaryImpl(Buyer target){
        this.target = target;
    }
    @Override
    public String havealook() {
        befor();
        String feedback = target.havealook();
        after();
        return "看房记录：买家反馈’"+feedback +"‘";
    }

    private void after() {
        logger.info("后期跟踪");
        logger.info("和买家沟通意见");
    }

    private void befor() {
        logger.info("前期准备");
        logger.info("查找房源");
        logger.info("和卖家沟通时间");
    }
}
